import requests as rq

base_url = 'https://www.baidu.com/more/'

response = rq.get(base_url)

with open('index.html','w',encoding='utf-8') as fp:
    fp.write(response.content.decode('utf-8'))
print(response.status_code)
print(response.headers)
print(type(response.text))
print(type(response.content))